const httpStatus = require('http-status');
const catchAsync = require('../utils/catchAsync');
const { dashboardService } = require('../services');

const getUserSummaryStats = catchAsync(async (req, res) => {
  const stats = await dashboardService.getUserSummaryStats();
  res.status(httpStatus.OK).send({
    error: 0,
    body: stats,
    message: '获取用户统计摘要成功'
  });
});

module.exports = {
  getUserSummaryStats,
}; 